int main()
{
	float pi = 0.0f;
	int count = 10000;
	int i;
#pragma offload target(mic)
	for(i = 0; i < count; i++)
	{
		float t = (float)((i + 0.5f)/count);
		pi += 4.0f / (1.0f + t * t);
	}
	pi /= count;
	if(fabs( pi - 3.14f) <= 0.01f)
#if defDEBUG
		printf("PASS Sample01 Pi = %f\n", pi);
	else
		printf("*** FAIL Sample01 Pi = %f\n", pi);
#else
		printf("PASS Sample01\n");
	else
		printf("*** FAIL Simple01\n");
#endif
}

